package com.ruoyi.daily.controller;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.daily.domain.dto.*;
import com.ruoyi.daily.domain.vo.RechargeOrWithdrawalReviewVo;
import com.ruoyi.daily.service.BranchSettlementService;
import com.ruoyi.daily.service.CollectingMonitorService;
import com.ruoyi.logistic.domain.NetworkJuniorBill;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author cmz
 * @Date 2024-05-30 17:59
 */
@RestController
@RequestMapping("/daily/collectingMonitor")
@Api(tags = "经营日报-揽收监控")
public class CollectingMonitorController {
    @Resource
    private CollectingMonitorService collectingMonitorService;

    
    @ApiOperation("本月收件")
    @GetMapping("/receivedThisMonth")
    public R<ReceivedThisMonthDto> receivedThisMonth() {
        return collectingMonitorService.receivedThisMonth();
    }

    @ApiOperation("今日订单")
    @GetMapping("/todayOrder")
    public R<TodayOrderDto> todayOrder() {
        //目前查的是昨日的数据
        return collectingMonitorService.todayOrder();
    }

    @ApiOperation("客户")
    @GetMapping("/customer")
    public R<List<CustomerDto>> customer() {
        //目前查的是昨日的数据
        return collectingMonitorService.customer();
    }
    
}
